takeRight

fun <ERR, A> ValidatedNel<ERR, A>.takeRight(other: ValidatedNel<ERR, A>): ValidatedNel<ERR, A>(source)

Often you have two validations that return the same thing, and you don't want necessarily to pair them. takeRight will return the value of the right side iff both validations succeed.

eg.

Valid("hi").takeRight(Valid("mum")) == Valid("mum")